package com.heima.test01;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = {"LOL", "原神", "游戏", "抖音", "睡觉"};
        System.out.println("Baby,今晚想干嘛?");
        String s = sc.nextLine();
        boolean ans = false;
        for (int i = 0; i < str.length; i++) {
            if (s.contains(str[i])) {
                str[i] = s;
                ans = true;
            }
        }
        if (ans) {
            System.out.println("好好学习");
        }else {
            System.out.println("行,那今晚就" + s);
        }
    }
}
